package com.company.project.modular.system.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author lsf
 * @since 2018-10-30
 */
@TableName("sys_purchase")
public class Purchase extends Model<Purchase> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("pur_id")
    private String purId;
    @TableField("pur_fax")
    private String purFax;
    @TableField("pur_pic")
    private String purPic;
    @TableField("pur_pic_tel")
    private String purPicTel;
    @TableField("pur_supplier")
    private String purSupplier;
    @TableField("pur_supplier_tel")
    private String purSupplierTel;
    @TableField("pur_adress")
    private String purAdress;
    @TableField("pur_pay_type")
    private String purPayType;
    @TableField("pur_date")
    private Date purDate;
    @TableField("pur_number")
    private Integer purNumber;
    @TableField("pur_name")
    private String purName;
    @TableField("pur_spec")
    private String purSpec;
    @TableField("pur_state")
    private Integer purState;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPurId() {
        return purId;
    }

    public void setPurId(String purId) {
        this.purId = purId;
    }

    public String getPurFax() {
        return purFax;
    }

    public void setPurFax(String purFax) {
        this.purFax = purFax;
    }

    public String getPurPic() {
        return purPic;
    }

    public void setPurPic(String purPic) {
        this.purPic = purPic;
    }

    public String getPurPicTel() {
        return purPicTel;
    }

    public void setPurPicTel(String purPicTel) {
        this.purPicTel = purPicTel;
    }

    public String getPurSupplier() {
        return purSupplier;
    }

    public void setPurSupplier(String purSupplier) {
        this.purSupplier = purSupplier;
    }

    public String getPurSupplierTel() {
        return purSupplierTel;
    }

    public void setPurSupplierTel(String purSupplierTel) {
        this.purSupplierTel = purSupplierTel;
    }

    public String getPurAdress() {
        return purAdress;
    }

    public void setPurAdress(String purAdress) {
        this.purAdress = purAdress;
    }

    public String getPurPayType() {
        return purPayType;
    }

    public void setPurPayType(String purPayType) {
        this.purPayType = purPayType;
    }

    public Date getPurDate() {
        return purDate;
    }

    public void setPurDate(Date purDate) {
        this.purDate = purDate;
    }

    public Integer getPurNumber() {
        return purNumber;
    }

    public void setPurNumber(Integer purNumber) {
        this.purNumber = purNumber;
    }

    public String getPurName() {
        return purName;
    }

    public void setPurName(String purName) {
        this.purName = purName;
    }

    public String getPurSpec() {
        return purSpec;
    }

    public void setPurSpec(String purSpec) {
        this.purSpec = purSpec;
    }

    public Integer getPurState() {
        return purState;
    }

    public void setPurState(Integer purState) {
        this.purState = purState;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Purchase{" +
        "id=" + id +
        ", purId=" + purId +
        ", purFax=" + purFax +
        ", purPic=" + purPic +
        ", purPicTel=" + purPicTel +
        ", purSupplier=" + purSupplier +
        ", purSupplierTel=" + purSupplierTel +
        ", purAdress=" + purAdress +
        ", purPayType=" + purPayType +
        ", purDate=" + purDate +
        ", purNumber=" + purNumber +
        ", purName=" + purName +
        ", purSpec=" + purSpec +
        ", purState=" + purState +
        "}";
    }
}
